package com.java.cloud.order.feign.fallback;

import com.java.cloud.order.feign.PaymentFeign;
import com.java.cloud.pay.entity.Payment;
import com.java.common.utils.R;
import org.springframework.stereotype.Component;

/**
 * @author jiangli
 * @since 2020/3/10 20:20
 */
@Component
public class PaymentFeignFallback implements PaymentFeign {
	@Override
	public R<Payment> info(Long id) {
		return R.error("查询失败,请稍后重试!");
	}

	@Override
	public R save(Payment payment) {
		return R.error("保存失败,请稍后重试!");
	}
}
